//
//  HEConsulItemCell.m
//  HealthFamily
//
//  Created by 吴欧 on 2020/11/23.
//  Copyright © 2020 honglutec. All rights reserved.
//

#import "HEConsulItemCell.h"

@interface HEConsulItemCell ()

@property (nonatomic, strong) UILabel *titleLb;

@end

@implementation HEConsulItemCell

- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        [self initUI];
    }
    return self;
}

- (void)initUI {
    _titleLb = [UILabel new];
    _titleLb.text = @"-";
    _titleLb.font = DYFont(16);
    _titleLb.textAlignment = NSTextAlignmentCenter;
    _titleLb.backgroundColor = CSplitLineColor;
    _titleLb.textColor = CNavLightBlackColor;
    [self.contentView addSubview: _titleLb];
    
    _titleLb.layer.cornerRadius = 10;
    
    [_titleLb mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.contentView).mas_offset(0);
        make.left.equalTo(self.contentView).mas_offset(0);
        make.right.equalTo(self.contentView).mas_offset(-0);
        make.bottom.equalTo(self.contentView).mas_offset(-0);
    }];
}

- (void)setModel:(HEAIConsultModel *)model {
    _model = model;
    _titleLb.text = model.ask;
}

@end
